﻿//双击事件
function CustomDbClick() {
    parent.closeWin(); //去掉双击功能
}

//添加
var fnCustomAdd = function () {
    alert("请去客户管理中添加联系人");
}


//-----------------------------------------
//编辑
//-----------------------------------------
var fnCustomEdit = function (key) {
    var recordID = myDataTable.getSelectedRows()[0];
    record = myDataTable.getRecord(recordID);
    if (record == null) {
        alert("请选择一条记录");
        return;
    }
    var pagetitle = "修改 " + record.getData("Cust_name") + " 客户的联系人";
    parent._employeeTitle = pagetitle;
    parent.addTabs(pagetitle, encodeURI("../Extend/Edit.aspx?r=" + Math.random() + "&entity=Cst_linkman&id=" + record.getData("ID")));
    parent.NeedRefreshPage = this;
}


//删除
var fnCustomDelete = function () {
    alert("不能删除");
}